package au.com.iglootech.TaxTimeToolTip.util;

import java.text.DecimalFormat;

public final class FeeUtil {
	public static String formatFee(Double fee) {
		if (fee == null) {
			return "0.00";
		}
		DecimalFormat df = new DecimalFormat("0.00");
		return df.format(fee);
	}

	public static String formatFeeWithUnit(Double fee) {
		return "$" + formatFee(fee);
	}
}
